package com.brillilab.domain.vo.method;

import java.util.Date;
import java.util.List;

import com.brillilab.domain.po.system.FileManage;

import lombok.Data;

/**
 * @author wuzhiyu
 * @Title: 方法详情
 * @ProjectName brill_lab
 * @Description: TODO
 * @date 2019/2/2114:10
 */
@Data
public class MethodDetail {
    private Long id;
    private String name;
    
    private Long firstTypeId; 
    private String firstTypeName;
    
    private Long secondTypeId;
    private String secondTypeName;
    
    private Long methodTypeId;
    private String methodTypeName;
    private String thirdTypeName;
    
    //作者
    private String author;
    //来源链接
    private String link;
    private String description;
    //原始方法id
    private Long sourceMethodId;
    //推荐方法id
    private Long recommendMethodId;
    //来源类型（0导入1推荐2新建）
    private Integer fromType;
    //个人初始第一版方法id 导入=导入后保存的第一版 推荐=接受时保存的第一版
    private Long initMethodId;
    private Integer version;
    private Integer exportCount;
    private Integer successCount;
    //推荐分享接受新建时间
    private Date importTime;
    //推荐实验室，分享人名字
    private String sourceName;
    //推荐时间，分享时间
    private Date fromTime;
    //方法所有者userId
    private Long userId;
    /**
     * 是否是推荐方法：0-否，1-是
     */
    private int isRecommend;
    /**
     * 是否是提交推荐审核过：0-否，1-是
     */
    private int isSubmitAudit;
    private List<MethodPhaseDetail> phaseList;
    //附件
    private List<FileManage> uploadFileList;
    
    public int getIsSubmitAudit() {
		if(isRecommend==1) {
			isSubmitAudit=1;
		}
		return isSubmitAudit;
	}
	private Date updateTime;
    private Date createTime;
}
